<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="crm.util.ParamUtil"%>
<%@page import="crm.control.RecepitControl"%>

<%
     request.setCharacterEncoding("UTF-8");
     String title=ParamUtil.getString(request,"title");
     if(title!=null){
         title = new String(title.getBytes("iso-8859-1"), "utf-8");
     }
     System.out.println(title);
     if(RecepitControl.recepitNameIsExis(title)){
     	out.write("0");
     } else{
     	out.write("1");
     }
%>